package cn.com.wangluotongxin.mall.rabbitmq;

import cn.com.wangluotongxin.mall.rabbitmq.listener.MallRabbitmqConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitmqQueue {

    /**
     *  快捷查询同步
     */
    @Bean
    public Queue quickQuerySync(){
        return new Queue(MallRabbitmqConstants.MALL_QUICK_QUERY_SYNC, true);
    }

    /**
     *  活动信息同步
     */
    @Bean
    public Queue activityInfoSync(){
        return new Queue(MallRabbitmqConstants.MALL_ACTIVITY_INFO_SYNC, true);
    }

    /**
     *  商品信息同步
     */
    @Bean
    public Queue goodsInfoSync(){
        return new Queue(MallRabbitmqConstants.MALL_GOODS_INFO_SYNC, true);
    }
}
